package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(100)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(30)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Uid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Goods struct {
	gorm.Model
	Name  string `gorm:"type:varchar(30)"`
	Price string `gorm:"type:varchar(30)"`
	Num   string `gorm:"type:varchar(30)"`
}
type GoodOrder struct {
	gorm.Model
	OrderCode  string `gorm:"type:varchar(30)"`
	OrderPrice string `gorm:"type:varchar(30)"`
	OrderNum   string `gorm:"type:varchar(30)"`
}
type GoodOrderList struct {
	OrderId    int
	Name       string
	Price      string
	Num        string
	OrderCode  string
	OrderPrice string
	OrderNum   string
}
